import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    buyId:0,
    roomPrice:0,
  },
  getters: {
  },
  mutations: {
    setBuyId(state,payload){
      state.buyId=payload
    },
    setRoomPrice(state,payload){
      state.roomPrice=payload
    },
    resetBuyId(state){
      state.buyId=0
    }
  },
  actions: {
  },
  modules: {
  }
})
